// my_task_os.h
#ifndef __my_task_OS_H
#define __my_task_OS_H

#include "main.h"

 #include <stdbool.h>

typedef struct {
    void (*task_func)(void);
    uint32_t interval;
    uint32_t next_run;
} my_taskOS_Task;

#define MAX_TASKS 8

void my_taskOS_Init(void);
bool my_taskOS_AddTask(void (*task_func)(void), uint32_t interval_ms);
void my_taskOS_RunScheduler(void);

#endif